package com.itheima.method;

public class Demo02 {
    public static void main(String[] args) {
      //  eat();
    //getMarry("大别野","amg",8888);

        System.out.println(max(2.14,13.14));
    }

    public static void eat() {
        study();
        System.out.println("eat开始了");
        System.out.println("吃饭");
        System.out.println("eat开始了");
    }


    public static void study() {
        System.out.println("study开始了");
        System.out.println("study");
        System.out.println("study结束了");
    }

    public static void getMarry(String house,String car,int i){
        System.out.println("收到女婿的:"+house+','+car+','+i+"元");


    }
    //返回任意两个数的最大值
    //定义方法,形参类型为double,用任意两个数作为实参调用
    public static double max(double a,double b) {
        return a > b ? a:b;

    }

}
